<template>
  <div class="xtx-bread-item">
    <RouterLink v-if="to" :to="to">
      <slot />
    </RouterLink>
    <span v-else>
      <slot /></span>
    <!-- 由render创建小标签 -->
    <!-- <i class="iconfont icon-angle-right"></i> -->
  </div>
</template>
<script>
  export default {
    name: 'BreadItem',
    props: {
      to: {
        type: [String, Object]
      }
    }
  }

</script>
